#ifndef LIGHT_H
#define LIGHT_H
#include<opencv2/opencv.hpp>
#include<vector>
using namespace cv;

class Light{
public:
    cv::Point2d dot[4];
    Rect2f light_rect;
    Point2d center;
    double area;
public:
    Light()=default;
    Light(cv::Point2d d1,cv::Point2d d2,cv::Point2d d3,cv::Point2d d4,double area);
    Light(Rect2f& rect,double area);
    ~Light()=default;
    void set_rect(cv::Point2d d1,cv::Point2d d2,cv::Point2d d3,cv::Point2d d4);
    void set_rect(Rect2f rect);
    void restart();
};

#endif